//
//  OptionalImage.swift
//  Tiktok
//
//  Created by xmd on 10/3/20.
//

import SwiftUI

struct OptionalImage: View {
    var uiImage: UIImage?
    
    var body: some View {
        Group {
            if uiImage != nil {
                Image(uiImage: uiImage!)
                    .resizable()
                    .scaledToFill()
                    .frame(alignment: .center)
            } else {
                Image("img_find_default")
            }
        }
    }
}
